adTempus API
PreviousUpNext
IProvideValidation::Validate Method

Validates the object

C++
HRESULT Validate(IADErrors * errors, [out,retval] ADErrorSeverity * validationResult);
C#
Validate(IADErrors errors, [out,retval] ADErrorSeverity validationResult);
Visual Basic
Sub Validate(errors As IADErrors, validationResult As [out,retval] ADErrorSeverity)
Parameters 
Description 
[in] IADErrors * errors 
The error collection to which messages should be added. 
[out,retval] ADErrorSeverity * validationResult 
Return value indicating the highest severity of the messages written to the collection. 

The return value is an ADErrorSeverity that indicates the highest severity error returned by the object. If no messages were added to the collection, the result will be adetSuccess.

Before calling the Validate method you must create a new ADErrors collection that will receive the errors (or pass the Validate method an existing error collection). 

The object will perform self-validation and add any errors or other messages to the errors�collection. 

The nature of the validation performed and the kinds of messages that may be returned depend on the object being validated; see the documentation for a specific validation provider for more information.

adTempus API Reference version 3.0.0.0, revised 10/30/2008